<html>
<head><meta charset="utf-8"><title>succinct delegation · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/succinct.20delegation.html">succinct delegation</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="230614459"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/succinct%20delegation/near/230614459" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Gutoski <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/succinct.20delegation.html#230614459">(Mar 17 2021 at 00:26)</a>:</h4>
<p>Hi folks.  What's the status of proposals to add a Golang-like struct embedding / delegation feature to Rust?  By this I mean something akin to what's described in this Shepmaster stackoverflow answer <a href="https://stackoverflow.com/a/32552698">https://stackoverflow.com/a/32552698</a> . Discussion I find on the internet is all several years old and it seems the topic has become dormant.  I often find myself wishing Rust has this feature.  Quoting Shepmaster from the above link:</p>
<blockquote>
<p>However, I do hold out hope for a language feature that enables succinct _delegation_, reducing the annoyance of composition.</p>
</blockquote>



<a name="230614701"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/succinct%20delegation/near/230614701" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Gutoski <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/succinct.20delegation.html#230614701">(Mar 17 2021 at 00:29)</a>:</h4>
<p>Here's the RFC tracking issue from 2018 <a href="https://github.com/rust-lang/rfcs/pull/2393">https://github.com/rust-lang/rfcs/pull/2393</a></p>



<a name="230625271"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/succinct%20delegation/near/230625271" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jack Huey <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/succinct.20delegation.html#230625271">(Mar 17 2021 at 01:28)</a>:</h4>
<p>Probably better to ask in #t-lang; but as far as that RFC in particular, it hasn't seen significant activity in a while, so it's probably not on the lang team's radar, at least in the short term. Definitely someone from the lang-team should weigh in :)</p>



<a name="230625424"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/succinct%20delegation/near/230625424" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jack Huey <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/succinct.20delegation.html#230625424">(Mar 17 2021 at 01:31)</a>:</h4>
<p>(they discussed the RFC briefly last year in their "backlog bonanza": <a href="https://youtu.be/NtPYMCtMjcc?t=237">video</a>)</p>
<div class="youtube-video message_inline_image"><a data-id="NtPYMCtMjcc" href="https://youtu.be/NtPYMCtMjcc?t=237"><img src="https://i.ytimg.com/vi/NtPYMCtMjcc/default.jpg"></a></div>



<a name="230627979"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/succinct%20delegation/near/230627979" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/succinct.20delegation.html#230627979">(Mar 17 2021 at 02:13)</a>:</h4>
<p>My recollection was that that RFC was generally liked, but there were some questions about how it would extend and what specific restrictions an MVP would have.</p>



<a name="230629751"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/succinct%20delegation/near/230629751" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Gutoski <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/succinct.20delegation.html#230629751">(Mar 17 2021 at 02:42)</a>:</h4>
<p>Thanks all!  I'll cross-post to <a class="stream" data-stream-id="213817" href="/#narrow/stream/213817-t-lang">#t-lang</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>